import AiToolsCard from "./ai-tools/index"
import type {App} from "vue";
import AiToolsPage from "./ai-tools/page";

let comps = [AiToolsCard, AiToolsPage]
const install = (Vue: App) =>{
  comps.map((component:any)=>{
    Vue.component(component.__name as string, component);
  })
}

let windowObj = window as any
/* 支持使用标签的方式引入 */
if (typeof windowObj !== 'undefined' && windowObj.Vue) {
  const vm = windowObj.Vue.createApp({})
  install(vm)
}

export default install

export {
  AiToolsCard,
  AiToolsPage
}
